package demo02;

public class Main {
    public static void main(String[] args) {
        GameRole gameRole=new GameRole("Mario");
        gameRole.init();
       CareTaker careTaker=new CareTaker();
       careTaker.setMemento(gameRole.createMemento());
        gameRole.show();
        gameRole.Fight();
        gameRole.show();
        gameRole.backupFromMemento(careTaker.getMemento());
        gameRole.show();
    }
}


